import 'package:json_annotation/json_annotation.dart';

part 'staff_sell_item.g.dart';

@JsonSerializable()
class StaffSellItem extends Object {
  @JsonKey(name: 'sysUserId')
  int sysUserId;

  @JsonKey(name: 'cellNum', defaultValue: 0)
  int cellNum;

  @JsonKey(name: 'totalFee', defaultValue: 0)
  int totalFee;

  @JsonKey(name: 'userName', defaultValue: '其他')
  String userName;

  StaffSellItem(
    this.sysUserId,
    this.cellNum,
    this.totalFee,
    this.userName,
  );

  factory StaffSellItem.fromJson(Map<String, dynamic> srcJson) => _$StaffSellItemFromJson(srcJson);

  Map<String, dynamic> toJson() => _$StaffSellItemToJson(this);
}
